package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class GeneralizedExpression implements SqlArgument {

    private int beginIndex;
    private int endIndex;
    private ValueExpression valueExpression;
    private SchemaQualifiedName pathResolvedUserDefinedTypeName;

    public GeneralizedExpression(ValueExpression valueExpression,
                                 SchemaQualifiedName pathResolvedUserDefinedTypeName) {
        this.beginIndex = valueExpression.getBeginIndex();
        this.endIndex = pathResolvedUserDefinedTypeName.getEndIndex();
        this.valueExpression = valueExpression;
        this.pathResolvedUserDefinedTypeName = pathResolvedUserDefinedTypeName;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public ValueExpression getValueExpression() {
        return valueExpression;
    }

    public SchemaQualifiedName getPathResolvedUserDefinedTypeName() {
        return pathResolvedUserDefinedTypeName;
    }

}
